package com.canis.stockmanager.repository;

import com.canis.stockmanager.domai.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ResourceRepository   extends JpaRepository<Resource, Long> {
    Page<Resource> findByIpContaining(String ip, Pageable pageable);
    Page<Resource> findByIpContainingOrPortContaining(String ip,String port, Pageable pageable);

}